import 'package:cher_flare/utils/app_color.dart';
import 'package:cher_flare/utils/ly_use_log_manager.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class LYStrategyPage extends StatefulWidget {
  const LYStrategyPage({super.key});

  @override
  State<LYStrategyPage> createState() => _LYStrategyPageState();
}

class _LYStrategyPageState extends State<LYStrategyPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: AppColors.colorD7FFDF,
        leading: InkWell(
          child: Image.asset(
            'assets/images/back_icon.png',
            width: 24,
            height: 24,
          ),
          onTap: () {
            Get.close(0);
          },
        ),
        elevation: 0,
        centerTitle: true,
        title: const Text(
          'Strategy',
          style: TextStyle(
              fontSize: 18,
              fontWeight: FontWeight.w600,
              color: AppColors.color202020),
        ),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.stretch,
        children: [
          Padding(
            padding: const EdgeInsets.only(left: 16, right: 16, top: 48),
            child: Column(
              mainAxisSize: MainAxisSize.min,
              mainAxisAlignment: MainAxisAlignment.start,
              crossAxisAlignment: CrossAxisAlignment.start,
              children: const [
                Text(
                  'Welcome to our app. As long as you insist on registering to unlock the sapling status, you can get medal rewards.',
                  style: TextStyle(fontSize: 18, color: AppColors.color202020),
                ),
                SizedBox(
                  height: 26,
                ),
                Text(
                  'Germination：Get the badge“Onset Oath Badge”.',
                  style: TextStyle(fontSize: 13, color: AppColors.color565656),
                ),
                SizedBox(
                  height: 16,
                ),
                Text(
                  'Seedling Stage: Get the badge“Steadfast Streak Crest”.',
                  style: TextStyle(fontSize: 13, color: AppColors.color565656),
                ),
                SizedBox(
                  height: 16,
                ),
                Text(
                  'Sapling Stage：Get the badge“Persistent Pledge Medallion”',
                  style: TextStyle(fontSize: 13, color: AppColors.color565656),
                ),
                SizedBox(
                  height: 16,
                ),
                Text(
                  'Mature Stage： Get the badge“Triumphant Commitment Emblem”.',
                  style: TextStyle(fontSize: 13, color: AppColors.color565656),
                ),
                SizedBox(
                  height: 16,
                ),
                Text(
                  'After obtaining the ordinary badge, you can pay to upgrade it to the advanced badge on medal page.',
                  style: TextStyle(fontSize: 13, color: AppColors.color565656),
                ),
              ],
            ),
          ),
          Image.asset('assets/images/strategy_tree_img.png'),
        ],
      ),
    );
  }
}
